<?php

namespace App\models\rbac;
use App\models\Base;
/**
* This is the model class for table "rbac_resource".
*
* @property integer $id 
* @property integer $pid 
* @property string $type 
* @property string $link 
* @property string $code 
* @property string $name 
*/
class Resource extends Base
{

    // 自动时间戳对应的变量
    //const CREATED_AT = 'created_at';
    //const UPDATED_AT = 'updated_at';

    protected $primaryKey = 'id';

    // 是否需要自动时间戳
    public $timestamps = false;

    // 时间的格式类型
    //protected $dateFormat = 'Y-m-d';

    //protected $connection = 'default';

    protected $table = 'rbac_resource';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'pid','type','link','code','name'
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [

    ];
}
